<template>
  <div class="message-tips">
    <div class="message-title">消息提醒</div>
    <div class="messageBody" v-for="item in  txArr ">
      <div class="message-Img">
        <img :src="item.imgSrc" alt="">
        <div class="txNum">10</div>
      </div>
      <div class="message-item">
        <div class="message-item-title" style="font-weight: bold;" @click=" goMessage ">
          <span class="title-left">{{ item.title }}</span>
          <span class="title-right" style="color: #5B73FF;">更多 ></span>
        </div>
        <div class="content-item">
          这里是第一条提醒内容这里是第一条提醒内容提醒内容提醒内容内容提醒内容内容提醒内容
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      txArr: [
        {
          imgSrc: require('@/assets/image/home/dqtx.png'),
          title: '到期类提醒'
        },
        {
          imgSrc: require('@/assets/image/home/ydltx.png'),
          title: '异动类提醒'
        },
        {
          imgSrc: require('@/assets/image/home/zyrqtx.png'),
          title: '重要日期类提醒'
        },
        {
          imgSrc: require('@/assets/image/home/jcjhtx.png'),
          title: '接触计划类提醒'
        },
        {
          imgSrc: require('@/assets/image/home/fxltx.png'),
          title: '风险预警类提醒'
        },
        {
          imgSrc: require('@/assets/image/home/zdyltx.png'),
          title: '自定义类提醒'
        },
        {
          imgSrc: require('@/assets/image/home/xxltx.png'),
          title: '营销类提醒'
        },
      ]
    }
  },
  methods: {
    goMessage() {
      this.$router.push({ path: '/myClient/MessageReminder' })
    }
  },
};
</script>

<style lang="scss" scoped>
.message-tips {
  box-sizing: border-box;
  margin-top: 20px;
  padding: 20px;
  padding-bottom: 90px;
  background-color: #fff;

  .message-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
  }

  .messageBody {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
  }

  .message-Img {
    padding: 5px;
    width: 50px;
    height: 50px;
    position: relative;
  }

  .message-Img img {
    width: 100%;
    height: 100%;
  }
  .txNum{
    position: absolute;
    top: 0px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #F35050;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 20px;
  }
  .message-item {
    width: 83%;
    margin-top: 10px;
  }

  .message-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
  }



  .content-item {
    width: 100%;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    color: #5C5C5C;
  }
}
</style>
